package main.QR;
import java.io.ByteArrayOutputStream;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;



/**
 * @author chenggm
 * @create 2017-03-02 13:26
 **/
public class QRTest {
		public static void main(String[] args) {
//			ByteArrayOutputStream out = QRCode.from("Hello World").to(ImageType.PNG).stream();

			try {
				FileOutputStream fout = new FileOutputStream(new File(
						"C:QR_Code.JPG"));

//				fout.write(out.toByteArray());

				fout.flush();
				fout.close();

			} catch (FileNotFoundException e) {
				// Do Logging
			} catch (IOException e) {
				// Do Logging
			}
		}
}
